home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / falcon / cpumodf3 / soundtrk.txt < prev   
Text File  |  1995-04-27  |  8KB  |  258 lines

  1.               SOUNDTRACK MODULE FILE FORMAT (*.MOD)
  2.               -------------------------------------
  3.  
  4. [Byte count]
  5. [20]   Song name , ASCII string
  6.  
  7. [30]   Sample  1 infos
  8.        [22]= Name        , ASCII string
  9.     [2]= Length        , in words
  10.     [1]= Default fine tune    , b3-b0= Signed 4-bit
  11.     [1]= Default volume    , (0-64)
  12.     [2]= Repeat loop start    , in words
  13.     [2]= Repeat loop length , in words , 0 or 1: None
  14. [30]   Sample  2 infos
  15. [30]   Sample  3 infos
  16. [30]   Sample  4 infos
  17. [30]   Sample .. infos
  18. [30]   Sample 13 infos
  19. [30]   Sample 14 infos
  20. [30]   Sample 15 infos
  21. if the module is a 31 sample module (See Chunk)
  22. [30]   Sample 16 infos
  23. [30]   Sample 17 infos
  24. [30]   Sample 18 infos
  25. [30]   Sample .. infos
  26. [30]   Sample 29 infos
  27. [30]   Sample 30 infos
  28. [30]   Sample 31 infos
  29. endif
  30.  
  31. [1]    Song table length , (1-128)
  32. [1]    0
  33. [128]  Song table , each pattern number on a byte
  34.  
  35. [4]    Chunk 'M.K.' for 31 sample module
  36.        or also 'M!K!' 'M&K&' 'FLT4' 'FLT6' 'FLT8'
  37.  
  38. [1024] Pattern     0
  39.        [16] Pattern position 0
  40.         [4] Voice 0
  41.         Played on left channel
  42.         [2]b12=    5th bit of the sample number for 31 sample module
  43.            b11-b0= Note period (113-856) , 36 notes , 3 octaves
  44.  
  45.            Per. Frequ.     Note    Per. Frequ.   Note   Per. Frequ.   Note
  46.            113    987.8 Hz B 3    226  493.9 Hz B 2    453  246.9 Hz B 1
  47.            120    932.4 Hz A#3    240  466.2 Hz A#2    480  233.1 Hz A#1
  48.            127    880.0 Hz A 3    254  440.0 Hz A 2    508  220.0 Hz A 1
  49.            135    830.6 Hz G#3    269  415.3 Hz G#2    538  207.6 Hz G#1
  50.            143    784.0 Hz G 3    285  392.0 Hz G 2    570  196.0 Hz G 1
  51.            151    740.0 Hz F#3    302  370.0 Hz F#2    604  185.0 Hz F#1
  52.            160    698.6 Hz F 3    320  349.3 Hz F 2    640  174.6 Hz F 1
  53.            170    659.4 Hz E 3    339  329.7 Hz E 2    678  164.8 Hz E 1
  54.            180    622.4 Hz D#3    360  311.2 Hz D#2    720  155.6 Hz D#1
  55.            190    587.4 Hz D 3    381  293.7 Hz D 2    762  146.8 Hz D 1
  56.            202    554.4 Hz C#3    404  277.2 Hz C#2    808  138.6 Hz C#1
  57.            214    523.4 Hz C 3    428  261.7 Hz C 2    856  130.8 Hz C 1
  58.  
  59.            In music: NextNoteFreq=NoteFreq*2^(1/12)
  60.  
  61.            On Amiga: ReplayFrequency=(3579546 Hz)/(NotePeriod)
  62.                  between 4 KHz to 32KHz for the 3 octaves
  63.                  ex: for C2 , ReplayFrequency=3579546/428=8363 Hz
  64.  
  65.         [1]b7-b4= Sample number (1-15) , 0: Previous
  66.            b3-b0= Effect (0-15)
  67.               Refreshed each timer period
  68.         [1] Parameters
  69.            b7-b4= P
  70.            b3-b0= Q
  71.               Effect
  72.                0: Normal play (PQ=0 )
  73.                   Arpeggio      (PQ<>0)
  74.                   P= 1st half-tone to add to pitch
  75.                   Q= 2nd half-tone to add to pitch
  76.  
  77.                1: Portamento up
  78.                   PQ= Pitch increase step
  79.  
  80.                2: Portamento down
  81.                   PQ= Pitch decrease step
  82.  
  83.                3: Tone portamento
  84.                   PQ= Pitch slide step , 0: Previous
  85.  
  86.                4: Vibrato
  87.                   P= Pitch change step  , 0: Previous
  88.                   Q= Pitch change depth , 0: Previous
  89.  
  90.                5: Tone portamento + Volume slide
  91.                   P= Volume increase step , in priority
  92.                   Q= Volume decrease step
  93.  
  94.                6: Vibrato + Volume slide
  95.                   P= Volume increase step , in priority
  96.                   Q= Volume decrease step
  97.  
  98.                7: Tremolo
  99.                   P= Volume change step  , 0: Previous
  100.                   Q= Volume change depth , 0: Previous
  101.  
  102.                8: Phasor effect
  103.                   PQ= Phase offset on sample
  104.  
  105.                9: Sample offset
  106.                   PQ= Offset in sample /256 , 0: Previous
  107.  
  108.               10: Volume slide
  109.                   P= Volume increase step , in priority
  110.                   Q= Volume decrease step
  111.  
  112.               11: Position jump
  113.                   PQ= Song position (0-127)
  114.  
  115.               12: Volume
  116.                   PQ= Volume (0-64)
  117.                    0: Stop
  118.                    1:-36.1 dB  17:-11.5 dB    33:- 5.8 dB  49:- 2.3 dB
  119.                    2:-30.1 dB  18:-11.0 dB    34:- 5.5 dB  50:- 2.1 dB
  120.                    3:-26.6 dB  19:-10.5 dB    35:- 5.2 dB  51:- 2.0 dB
  121.                    4:-24.1 dB  20:-10.1 dB    36:- 5.0 dB  52:- 1.8 dB
  122.                    5:-22.1 dB  21:- 9.7 dB    37:- 4.8 dB  53:- 1.6 dB
  123.                    6:-20.6 dB  22:- 9.3 dB    38:- 4.5 dB  54:- 1.5 dB
  124.                    7:-19.2 dB  23:- 8.9 dB    39:- 4.3 dB  55:- 1.3 dB
  125.                    8:-18.1 dB  24:- 8.5 dB    40:- 4.1 dB  56:- 1.2 dB
  126.                    9:-17.0 dB  25:- 8.2 dB    41:- 3.9 dB  57:- 1.0 dB
  127.                   10:-16.1 dB  26:- 7.8 dB    42:- 3.7 dB  58:- 0.9 dB
  128.                   11:-15.3 dB  27:- 7.5 dB    43:- 3.5 dB  59:- 0.7 dB
  129.                   12:-14.5 dB  28:- 7.2 dB    44:- 3.3 dB  60:- 0.6 dB
  130.                   13:-13.8 dB  29:- 6.9 dB    45:- 3.1 dB  61:- 0.4 dB
  131.                   14:-13.2 dB  30:- 6.6 dB    46:- 2.9 dB  62:- 0.3 dB
  132.                   15:-12.6 dB  31:- 6.3 dB    47:- 2.7 dB  63:- 0.1 dB
  133.                   16:-12.0 dB  32:- 6.0 dB    48:- 2.5 dB  64:  0   dB
  134.  
  135.               13: Pattern break
  136.                   PQ= Stop the current pattern and
  137.                   jump to the next song position
  138.                   at pattern position P*10+Q (0-63)
  139.  
  140.               14: Extend command
  141.                   P= 0 Filter
  142.                    Q=0: Filter on  , or LED on
  143.                    Q=1: Filter off , or LED off
  144.  
  145.                   P= 1 Fine portamento up
  146.                    Q= Value to add to pitch
  147.                       each pattern position
  148.  
  149.                   P= 2 Fine portamento down
  150.                    Q= Value to subtract from pitch
  151.                       each pattern position
  152.  
  153.                   P= 3 Tone portamento control
  154.                    Q=0: Off , the slide is straight , default
  155.                    Q=1: On  , the slide is halftone to halftone
  156.  
  157.                   P= 4 Vibrato waveform
  158.                    Qb1-b0=0: Sinus , default
  159.                    Qb1-b0=1: Ramp down
  160.                    Qb1-b0=2: Square
  161.                    Qb1-b0=3: Random
  162.                    Qb2=0: Waveform has to be restarted each note
  163.                       , default
  164.  
  165.                   P= 5 Fine tune
  166.                    Q= Fine tune value
  167.                       NewNoteFreq=NoteFreq*2^(Finetune/96)
  168.  
  169.                   P= 6 Pattern position loop
  170.                    Q =0: Set loop start pattern position
  171.                    Q<>0: Jump to loop start pattern position and
  172.                      play Q times
  173.  
  174.                   P= 7 Tremolo waveform
  175.                    Qb1-b0=0: Sinus , default
  176.                    Qb1-b0=1: Ramp down
  177.                    Qb1-b0=2: Square
  178.                    Qb1-b0=3: Random
  179.                    Qb2=0: Waveform has to be restarted each note
  180.                       , default
  181.  
  182.                   P= 8 Stop playing
  183.  
  184.                   P= 9 Retrig sample
  185.                    Q= Retrig sample each Q*TimerPeriod
  186.  
  187.                   P=10 Fine volume slide up
  188.                    Q= Value to add to volume
  189.                       each pattern position
  190.  
  191.                   P=11 Fine volume slide down
  192.                    Q= Value to subtract from volume
  193.                       each pattern position
  194.  
  195.                   P=12 Note cut
  196.                    Q= Cut note after Q*TimerPeriod
  197.                       volume is only set to 0
  198.  
  199.                   P=13 Note delay
  200.                    Q= Note delay
  201.                       Wait Q*TimerPeriod before playing note
  202.  
  203.                   P=14 Pattern position delay
  204.                    Q= Pattern position delay
  205.                       Wait (Q+1)*PatternPositionDelay
  206.  
  207.                   P=15 Invert repeat loop , Funk
  208.                    Q= Glissando funk
  209.                       0:   0 , off      8:  16
  210.                       1:   5          9:  19
  211.                       2:   6         10:  22
  212.                       3:   7         11:  26
  213.                       4:   8         12:  32
  214.                       5:  10         13:  43
  215.                       6:  11         14:  64
  216.                       7:  13         15: 128
  217.                       Invert the sign of sample data inside
  218.                       sample repeat loop ,
  219.                       one byte each (128/Q)*TimerPeriod
  220.                       This effect is permanent and
  221.                       modifies the samples.
  222.  
  223.               15: Speed
  224.                   PQ=0    Stop playing
  225.                   PQ=1-32    One pattern position each PQ*TimerPeriod
  226.                     default=6
  227.                   PQ=33-255 TimerPeriod=(125/PQ)/50 second
  228.                     default=125
  229.         [4] Voice 1
  230.         Played on right channel
  231.         [4] Voice 2
  232.         Played on right channel
  233.         [4] Voice 3
  234.         Played on left channel
  235.        [16] Pattern position  1
  236.        [16] Pattern position  2
  237.        [16] Pattern position  3
  238.        [16] Pattern position ..
  239.        [16] Pattern position 61
  240.        [16] Pattern position 62
  241.        [16] Pattern position 63
  242. [1024] Pattern     1
  243. [1024] Pattern     2
  244. [1024] Pattern     3
  245. [1024] Pattern ...
  246. [1024] Pattern 125
  247. [1024] Pattern 126
  248. [1024] Pattern 127 , number of pattern stored is equal to the highest
  249.              pattern number +1 in the song table
  250.  
  251. [X]   Sample  1 data , Signed-8 bit , ex: sampling frequency=8363 Hz for C2
  252. [X]   Sample  2 data , Signed-8 bit
  253. [X]   Sample  3 data , Signed-8 bit
  254. [X]   Sample .. data , Signed-8 bit
  255. [X]   Sample 29 data , Signed-8 bit
  256. [X]   Sample 30 data , Signed-8 bit
  257. [X]   Sample 31 data , Signed-8 bit
  258.